package com.xzlf.controller;

import com.xzlf.dto.ResultDTO;
import com.xzlf.service.SyncSendService;
import com.xzlf.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SyncRequestController {

    @Autowired
    private SyncSendService syncSendService;

    @GetMapping("/sync")
    public R<ResultDTO> sync(int count){
        ResultDTO send = syncSendService.send(count);
        return R.ok(send);
    }

}
